import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()
class User {
  User();

  String? avatar;
  late String createTime;
  num? deptId;
  List? deptIds;
  String? deptName;
  String? description;
  String? email;
  late num id;
  String? lastLoginTime;
  late String mobile;
  String? password;
  List? roleIds;
  String? roleName;
  late String sex;
  late String status;
  String? updateTime;
  late String username;
  
  factory User.fromJson(Map<String,dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);
}
